<script type="text/javascript">
function swsubmit()
{
	
	if($("#cityname_box").css("display")=='none')
	{
		$("#cityname_box").show();
		$("#citylist_box").hide();
		$("#switchbtn").html(LANG.JS_SELEST_LIST);
	}
	else
	{
		$("#citylist_box").show();
		$("#cityname_box").hide();
		$("#switchbtn").html(LANG.JS_OTHER_CITY);
	}
}

</script>
							<p class="welcome-notice">
							<?php echo $this->_var['deal_city']['description']; ?>							
							</p>
							<div class="enter-address">
								<div class="enter-address-c">
									<form method="post" action="<?php 
$k = array (
  'name' => 'url_pack',
  'value' => 'subscribe#addmail',
);
echo $k['name']($k['value']);
?>" id="enter-address-form">
										<div class="mail">
											<label><?php echo $this->_var['LANG']['MAIL_ADDRESS']; ?>：</label>
											<input type="text" size="20" value="<?php echo $this->_var['user_info']['email']; ?>" class="f-input f-mail" name="email" id="enter-address-mail">
											<span class="tip"><?php echo $this->_var['LANG']['MAIL_ADDRESS_TIP']; ?></span> </div>
										<div class="city">
											<label id="enter-address-city-label"><?php echo $this->_var['LANG']['SELECT_YOUR_CITY']; ?>：</label>
											
											<span style="display: none;" id="cityname_box">
												<input type="text" name="othercity" class="f-input">
											</span>
											
											<span id="citylist_box">
											<select class="f-city" name="cityid">
											<?php $_from = $this->_var['deal_city_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'deal_city_item');if (count($_from)):
    foreach ($_from AS $this->_var['deal_city_item']):
?>
											<option value="<?php echo $this->_var['deal_city_item']['id']; ?>" <?php if ($this->_var['deal_city_item']['id'] == $this->_var['deal_city']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_var['deal_city_item']['name']; ?></option>
											<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
											</select>
											</span>
											
											<input type="text" style="display: none;" value="" class="f-input f-cityname" name="cityname" autocomplete="off" id="enter-address-city">
											&nbsp;&nbsp;
											<input type="submit" value="<?php echo $this->_var['LANG']['SUBSCRIBE']; ?>" class="formbutton" id="enter-address-commit">
											<br>
											<span style="color: rgb(255, 51, 0); text-decoration: underline; cursor: pointer;" onclick="swsubmit()" id="switchbtn" class="tip"><?php echo $this->_var['LANG']['OTHER_CITY']; ?></span>
											</div>
									</form>
								</div>
								<div class="clear"></div>
							</div>
													